package com.changgou.goods;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@TableName("tb_sku")
public class Sku {

    @TableId(value = "id", type = IdType.INPUT)
    private String id;

    @TableField("sn")
    private String sn;

    @TableField("name")
    private String name;

    @TableField("price")
    private Integer price;

    @TableField("num")
    private Integer num;

    @TableField("alert_num")
    private Integer alertNum;

    @TableField("image")
    private String image;

    @TableField("images")
    private String images;

    @TableField("weight")
    private Integer weight;

    @TableField("create_time")
    private Date createTime;

    @TableField("update_time")
    private Date updateTime;

    @TableField("spu_id")
    private String spuId;

    @TableField("category_id")
    private Integer categoryId;

    @TableField("category_name")
    private String categoryName;

    @TableField("brand_name")
    private String brandName;

    @TableField("spec")
    private String spec;

    @TableField("sale_num")
    private Integer saleNum;

    @TableField("comment_num")
    private Integer commentNum;

    @TableField("status")
    private String status;

    @Version
    @TableField("version")
    private Integer version;
}